//
//  LCMineHeadCell.m
//  JKFuYinProject
//
//  Created by jiukuyinyue on 2017/9/11.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LCMineHeadCell.h"
#import "KYWaterWaveView.h"

@interface LCMineHeadCell ()
@property (nonatomic,strong) KYWaterWaveView *waterViewXib;
@end

@implementation LCMineHeadCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView * viewTop = [[UIImageView alloc]init];
        viewTop.image = [UIImage imageNamed:@"我的_背景图"];
        viewTop.userInteractionEnabled = YES;
        [self addSubview:viewTop];

        self.imageViewHeader = [[UIImageView alloc]init];
        [self.imageViewHeader.layer setMasksToBounds:YES];
        [viewTop addSubview:self.imageViewHeader];

        self.labelUserName = [[UILabel alloc]init];
        self.labelUserName.textColor = [UIColor whiteColor];
        //        self.labelUserName.backgroundColor = [UIColor yellowColor];
        [viewTop addSubview:self.labelUserName];

        self.viewTimeTotal = [[UIView alloc]init];
        [self.viewTimeTotal.layer setMasksToBounds:YES];
        self.viewTimeTotal.backgroundColor = RGBColor(238, 143, 142);
        [viewTop addSubview:self.viewTimeTotal];

        UIImageView * imageViewClock = [[UIImageView alloc]init];
        imageViewClock.image = [UIImage imageNamed:@"我的_历史阅读"];
        [self.viewTimeTotal addSubview:imageViewClock];

        self.labelReading = [[UILabel alloc]init];
        self.labelReading.textColor = [UIColor whiteColor];
        //        self.labelReading.backgroundColor = [UIColor yellowColor];
        [self.viewTimeTotal addSubview:self.labelReading];

        self.butNotice = [[UIButton alloc]init];
        [self.butNotice setImage:[UIImage imageNamed:@"动态_个人中心消息"] forState:UIControlStateNormal];
        [viewTop addSubview:self.butNotice];

        self.butSetUp = [[UIButton alloc]init];
        [self.butSetUp setImage:[UIImage imageNamed:@"我的_设置"] forState:UIControlStateNormal];
        //        self.butSetUp.backgroundColor = [UIColor yellowColor];
        [viewTop addSubview:self.butSetUp];


        self.butNoLogin = [[UIButton alloc]init];
        [self.butNoLogin setTitle:@"未登录" forState:UIControlStateNormal];
        [self.butNoLogin.layer setMasksToBounds:YES];
        [self.butNoLogin.layer setCornerRadius:5];
        [self.butNoLogin.layer setBorderWidth:0.5];
        self.butNoLogin.layer.borderColor=[UIColor redColor].CGColor;
        [viewTop addSubview:self.butNoLogin];


        self.butInviteCode = [[UIButton alloc]init];
        [self.butInviteCode setImage:[UIImage imageNamed:@"我的_我的邀请码"] forState:UIControlStateNormal];
        [viewTop addSubview:self.butInviteCode];

        self.labelInviteCode = [[UILabel alloc]init];
        self.labelInviteCode.textColor = [UIColor whiteColor];
        self.labelInviteCode.textAlignment = NSTextAlignmentCenter;
        self.labelInviteCode.text = @"每日签到";
        [self.butInviteCode addSubview:self.labelInviteCode];

        //爱心值
        self.butLove = [[UIButton alloc]init];
        //        self.butLove.backgroundColor = [UIColor yellowColor];
        [viewTop addSubview:self.butLove];
        self.imageViewLove = [[UIImageView alloc]init];
        self.imageViewLove.image = [UIImage imageNamed:@"我的_爱心值"];
        [self.butLove addSubview:self.imageViewLove];
        self.labelLove = [[UILabel alloc]init];
        self.labelLove.textColor = [UIColor whiteColor];
        [self.butLove addSubview:self.labelLove];
        //福音值
        self.butFuYin = [[UIButton alloc]init];
        //        self.butFuYin.backgroundColor = [UIColor redColor];
        [viewTop addSubview:self.butFuYin];
        self.imageViewFuYin = [[UIImageView alloc]init];
        self.imageViewFuYin.image = [UIImage imageNamed:@"我的_福音值"];
        [self.butFuYin addSubview:self.imageViewFuYin];
        self.labelFuYin = [[UILabel alloc]init];
        self.labelFuYin.textColor = [UIColor whiteColor];
        [self.butFuYin addSubview:self.labelFuYin];

        UIView * viewFenGe = [[UIView alloc]init];
        viewFenGe.backgroundColor = divider;
        [viewTop addSubview:viewFenGe];

        if (ScreenWidth == 320) {
            //5
            self.labelLove.font = FONT_(13.5);
            self.labelFuYin.font = FONT_(13.5);
            self.labelUserName.font = FONT_(14);
            self.labelReading.font = FONT_(10);
            self.labelInviteCode.font = FONT_(13);
            self.butNoLogin.titleLabel.font = FONT_(14.5);
            viewTop.frame = CGRectMake(0,0,ScreenWidth,177+10);
            self.imageViewHeader.frame = CGRectMake(20, 65,50, 50);
            [self.imageViewHeader.layer setCornerRadius:self.imageViewHeader.frame.size.width/2];
            self.butSetUp.frame = CGRectMake( ScreenWidth-50, 15, 30, 30);
            self.butNotice.frame = CGRectMake(20, 15, 30, 30);

            self.butNoLogin.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+3,CGRectGetMinY(self.imageViewHeader.frame)+10,80, self.imageViewHeader.frame.size.height-20);
            [self.butNoLogin.layer setCornerRadius:5];

            self.labelUserName.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+5, CGRectGetMinY(self.imageViewHeader.frame)+3, ScreenWidth/2, 18);
            self.viewTimeTotal.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+5, CGRectGetMaxY(self.labelUserName.frame)+2, 100, 18);
            imageViewClock.frame = CGRectMake(6.5,(self.viewTimeTotal.frame.size.height-9)/2 , 9,9);
            self.labelReading.frame = CGRectMake(CGRectGetMaxX(imageViewClock.frame)+2, 0,self.viewTimeTotal.frame.size.width-CGRectGetMaxX(imageViewClock.frame)-2,self.viewTimeTotal.frame.size.height);

            [self.viewTimeTotal.layer setCornerRadius:4];
            self.butInviteCode.frame = CGRectMake(ScreenWidth-100, 7+CGRectGetMinY(self.imageViewHeader.frame), 100, self.imageViewHeader.frame.size.height-14);
            self.labelInviteCode.frame = CGRectMake(26,0,self.butInviteCode.frame.size.width-35, self.butInviteCode.frame.size.height);

            self.butLove.frame = CGRectMake(0, viewTop.frame.size.height-60, ScreenWidth/2,60);
            self.imageViewLove.frame = CGRectMake(self.butInviteCode.frame.size.width/4,(self.butLove.frame.size.height-11)/2-1, 12, 11);
            self.labelLove.frame = CGRectMake(CGRectGetMaxX(self.imageViewLove.frame)+3, 20, self.butLove.frame.size.width-CGRectGetMaxX(self.imageViewLove.frame)-5, 6+11);

            self.butFuYin.frame = CGRectMake(ScreenWidth/2, viewTop.frame.size.height-60, ScreenWidth/2,60);
            self.imageViewFuYin.frame = CGRectMake(self.butInviteCode.frame.size.width/4,(self.butFuYin.frame.size.height-11)/2-1, 12, 11);
            self.labelFuYin.frame = CGRectMake(CGRectGetMaxX(self.imageViewFuYin.frame)+3, 20, self.butFuYin.frame.size.width-CGRectGetMaxX(self.imageViewFuYin.frame)-5, 6+11);

            viewFenGe.frame = CGRectMake(ScreenWidth/2-0.2,18+CGRectGetMinY(self.butLove.frame), 0.5, self.butLove.frame.size.height-40);
        }else if(ScreenWidth == 375){
            // 6 7
            self.labelUserName.font = FONT_(14.5);
            self.labelReading.font = FONT_(10.5);
            self.labelLove.font = FONT_(14);
            self.labelFuYin.font = FONT_(14);
            self.labelInviteCode.font = FONT_(13.5);
            self.butNoLogin.titleLabel.font = FONT_(15);
            viewTop.frame = CGRectMake(0,0,ScreenWidth,187+10);
            //80- 75
            self.imageViewHeader.frame = CGRectMake(20,65, 50, 50);
            self.butNotice.frame = CGRectMake(20, 15, 35, 35);
            self.butSetUp.frame = CGRectMake(ScreenWidth-50,15, 35, 35);

            [self.imageViewHeader.layer setCornerRadius:self.imageViewHeader.frame.size.width/2];
            self.butNoLogin.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+3,CGRectGetMinY(self.imageViewHeader.frame)+12,80, self.imageViewHeader.frame.size.height-24);
            [self.butNoLogin.layer setCornerRadius:6];

            self.labelUserName.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+5, CGRectGetMinY(self.imageViewHeader.frame)+5, ScreenWidth/2, 17);
            self.viewTimeTotal.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+5, CGRectGetMaxY(self.labelUserName.frame)+3, 110, 18);
            [self.viewTimeTotal.layer  setCornerRadius:5];
            imageViewClock.frame = CGRectMake(6.5,(self.viewTimeTotal.frame.size.height-10)/2 , 10,10);
            self.labelReading.frame = CGRectMake(CGRectGetMaxX(imageViewClock.frame)+2, 0,self.viewTimeTotal.frame.size.width-CGRectGetMaxX(imageViewClock.frame)-2,self.viewTimeTotal.frame.size.height);

            self.butInviteCode.frame = CGRectMake(ScreenWidth-110, 8.5+CGRectGetMinY(self.imageViewHeader.frame), 110, self.imageViewHeader.frame.size.height-17);
            self.labelInviteCode.frame = CGRectMake(34,0,self.butInviteCode.frame.size.width-50, self.butInviteCode.frame.size.height);
            self.butLove.frame = CGRectMake(0, viewTop.frame.size.height-65, ScreenWidth/2, 65);
            self.imageViewLove.frame = CGRectMake(self.butInviteCode.frame.size.width/4,(self.butLove.frame.size.height-11)/2-3, 12, 11);
            self.labelLove.frame = CGRectMake(CGRectGetMaxX(self.imageViewLove.frame)+3, 20, self.butLove.frame.size.width-CGRectGetMaxX(self.imageViewLove.frame)-5, 6+11);

            self.butFuYin.frame = CGRectMake(ScreenWidth/2, viewTop.frame.size.height-65, ScreenWidth/2, 65);
            self.imageViewFuYin.frame = CGRectMake(self.butInviteCode.frame.size.width/4,(self.butFuYin.frame.size.height-11)/2-3, 12, 11);
            self.labelFuYin.frame = CGRectMake(CGRectGetMaxX(self.imageViewFuYin.frame)+3, 20, self.butFuYin.frame.size.width-CGRectGetMaxX(self.imageViewFuYin.frame)-5, 6+11);

            viewFenGe.frame = CGRectMake(ScreenWidth/2-0.2, 20+CGRectGetMinY(self.butLove.frame), 0.5, self.butLove.frame.size.height-44);
        }else {
            //plus
            self.labelUserName.font = FONT_(15);
            self.labelReading.font = FONT_(11);
            self.labelLove.font = FONT_(14.5);
            self.labelFuYin.font = FONT_(14.5);
            self.labelInviteCode.font = FONT_(14);
            self.butNoLogin.titleLabel.font = FONT_(15.5);

            viewTop.frame = CGRectMake(0,0,ScreenWidth,195+10);
            self.imageViewHeader.frame = CGRectMake(20, 70, 55, 55);
            self.butNotice.frame = CGRectMake(20, 15, 35, 35);

            self.butSetUp.frame = CGRectMake( ScreenWidth-50, 15, 35, 35);
            [self.imageViewHeader.layer setCornerRadius:self.imageViewHeader.frame.size.width/2];
            self.butNoLogin.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+3,CGRectGetMinY(self.imageViewHeader.frame)+14,80, self.imageViewHeader.frame.size.height-28);
            [self.butNoLogin.layer setCornerRadius:7];
            self.labelUserName.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+5, CGRectGetMinY(self.imageViewHeader.frame)+5, ScreenWidth/2, 19);
            self.viewTimeTotal.frame = CGRectMake(CGRectGetMaxX(self.imageViewHeader.frame)+5, CGRectGetMaxY(self.labelUserName.frame)+3, 118, 20);
            [self.viewTimeTotal.layer  setCornerRadius:6];
            imageViewClock.frame = CGRectMake(6.5,(self.viewTimeTotal.frame.size.height-11)/2 , 11,11);
            self.labelReading.frame = CGRectMake(CGRectGetMaxX(imageViewClock.frame)+2, 0,self.viewTimeTotal.frame.size.width-CGRectGetMaxX(imageViewClock.frame)-2,self.viewTimeTotal.frame.size.height);

            self.butInviteCode.frame = CGRectMake(ScreenWidth-115, 9 +CGRectGetMinY(self.imageViewHeader.frame), 115, self.imageViewHeader.frame.size.height-18);
            self.labelInviteCode.frame = CGRectMake(30,0,self.butInviteCode.frame.size.width -50, self.butInviteCode.frame.size.height);
            self.butLove.frame = CGRectMake(0, viewTop.frame.size.height-73, ScreenWidth/2, 73);
            self.imageViewLove.frame = CGRectMake(self.butInviteCode.frame.size.width/4, (self.butLove.frame.size.height-13*1.1)/2, 12*1.1, 11*1.1);
            self.labelLove.frame = CGRectMake(CGRectGetMaxX(self.imageViewLove.frame)+3,(self.butLove.frame.size.height-13*1.1)/2-4, self.butLove.frame.size.width-CGRectGetMaxX(self.imageViewLove.frame)-5, 8+11);

            self.butFuYin.frame = CGRectMake(ScreenWidth/2, viewTop.frame.size.height-73, ScreenWidth/2, 73);
            self.imageViewFuYin.frame = CGRectMake(self.butInviteCode.frame.size.width/4, (self.butLove.frame.size.height-13*1.1)/2, 12*1.1, 11*1.1);
            self.labelFuYin.frame = CGRectMake(CGRectGetMaxX(self.imageViewFuYin.frame)+3,(self.butFuYin.frame.size.height-13*1.1)/2-4,self.butFuYin.frame.size.width-CGRectGetMaxX(self.imageViewFuYin.frame)-5, 8+11);

            viewFenGe.frame = CGRectMake(ScreenWidth/2-0.2, 20+CGRectGetMinY(self.butLove.frame), 0.5, self.butLove.frame.size.height-50);
        }

        self.butSignIn = [[UIButton alloc]init];
        [self addSubview:self.butSignIn];

        self.imageViewSignIn = [[UIImageView alloc]init];
        self.imageViewSignIn.image = [UIImage imageNamed:@"我的_兑换提现"];
        self.imageViewSignIn.userInteractionEnabled = YES;
        [self.butSignIn addSubview:self.imageViewSignIn];

        self.labelSignIn = [[UILabel alloc]init];
        self.labelSignIn.textColor = titleColorLSZ;
        self.labelSignIn.text = @"兑换提现";
        self.labelSignIn.textAlignment = NSTextAlignmentCenter;
        [self.butSignIn addSubview:self.labelSignIn];

        self.butCollection = [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth/4, 0, ScreenWidth/4, self.frame.size.height)];
        [self addSubview:self.butCollection];
        self.imageViewCollection = [[UIImageView alloc]init];
        self.imageViewCollection.image = [UIImage imageNamed:@"邀请好友"];
        self.imageViewCollection.userInteractionEnabled = YES;
        [self.butCollection addSubview:self.imageViewCollection];

        self.labelCollection = [[UILabel alloc]init];
        self.labelCollection.textColor = RGBColor(51, 51, 51);
        self.labelCollection.text = @"我的收藏";
        self.labelCollection.textAlignment = NSTextAlignmentCenter;
        [self.butCollection addSubview:self.labelCollection];

        self.butHistorical = [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth/2, 0, ScreenWidth/4, self.frame.size.height)];
        [self addSubview:self.butHistorical];
        self.imageViewHistorical = [[UIImageView alloc]initWithFrame:CGRectMake((ScreenWidth/4-44)/2, 5, 44, 44)];
        self.imageViewHistorical.image = [UIImage imageNamed:@"兑换提现"];
        self.imageViewHistorical.userInteractionEnabled = YES;
        [self.butHistorical addSubview:self.imageViewHistorical];

        self.labelHistorical = [[UILabel alloc]init];
        self.labelHistorical.textColor = RGBColor(51, 51, 51);
        self.labelHistorical.text = @"圣经笔记";
        self.labelHistorical.textAlignment = NSTextAlignmentCenter;
        [self.butHistorical addSubview:self.labelHistorical];


        self.butCache = [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth/4*3, 0, ScreenWidth/4, self.frame.size.height)];
        [self addSubview:self.butCache];
        self.imageViewCache = [[UIImageView alloc]initWithFrame:CGRectMake((ScreenWidth/4-44)/2, 5, 44, 44)];
        self.imageViewCache.image = [UIImage imageNamed:@"我_我的奉献支持"];
        self.imageViewCache.userInteractionEnabled = YES;
        [self.butCache addSubview:self.imageViewCache];

        self.labelCache = [[UILabel alloc]init];
        self.labelCache.textColor = RGBColor(51, 51, 51);
        self.labelCache.text = @"我的缓存";
        self.labelCache.textAlignment = NSTextAlignmentCenter;
        [self.butCache addSubview:self.labelCache];

        NSInteger height;
        if (ScreenWidth == 320) {
            //5
            height = 73;
            self.labelSignIn.font = FONT_(13);
            self.labelCollection.font = FONT_(13);
            self.labelHistorical.font = FONT_(13);
            self.labelCache.font = FONT_(13);
            self.frame = CGRectMake(0, 0, ScreenWidth,70);
            self.butSignIn.frame = CGRectMake(0,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewSignIn.frame = CGRectMake((ScreenWidth/4-18)/2,12, 18, 18.5);
            self.labelSignIn.frame = CGRectMake(0, CGRectGetMaxY(self.imageViewSignIn.frame)+5, ScreenWidth/4,14);

            self.butCollection.frame = CGRectMake(ScreenWidth/4,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,self.frame.size.height);
            self.imageViewCollection.frame = CGRectMake((ScreenWidth/4-18)/2, 12.5, 18, 18);
            self.labelCollection.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewCollection.frame)+5, ScreenWidth/4, 14);

            self.butHistorical.frame = CGRectMake(ScreenWidth/2,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewHistorical.frame = CGRectMake((ScreenWidth/4-17.5)/2, 13.5, 17.5, 17.5);
            self.labelHistorical.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewHistorical.frame)+5, ScreenWidth/4, 14);


            self.butCache.frame = CGRectMake(ScreenWidth/4*3,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewCache.frame = CGRectMake((ScreenWidth/4-18)/2,14, 18, 16.5);
            self.labelCache.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewCache.frame)+5, ScreenWidth/4, 14);

        }else if(ScreenWidth == 375){
            // 6 7
            height = 82;
            self.labelSignIn.font = FONT_(13.5);
            self.labelCollection.font = FONT_(13.5);
            self.labelHistorical.font = FONT_(13.5);
            self.labelCache.font = FONT_(13.5);
            self.butSignIn.frame = CGRectMake(0, CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewSignIn.frame = CGRectMake((ScreenWidth/4-19)/2,12, 19, 19.5);
            self.labelSignIn.frame = CGRectMake(0, CGRectGetMaxY(self.imageViewSignIn.frame)+5, ScreenWidth/4,16);

            self.butCollection.frame = CGRectMake(ScreenWidth/4,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewCollection.frame = CGRectMake((ScreenWidth/4-19)/2, 12.5, 19, 19);
            self.labelCollection.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewCollection.frame)+5, ScreenWidth/4, 16);

            self.butHistorical.frame = CGRectMake(ScreenWidth/2,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewHistorical.frame = CGRectMake((ScreenWidth/4-17.5)/2, 13.5, 17.5, 17.5);
            self.labelHistorical.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewHistorical.frame)+5, ScreenWidth/4, 16);

            self.butCache.frame = CGRectMake(ScreenWidth/4*3,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewCache.frame = CGRectMake((ScreenWidth/4-19)/2,14, 19, 17.5);
            self.labelCache.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewCache.frame)+5, ScreenWidth/4, 16);
        }else {
            //plus
            height = 73;
            self.labelSignIn.font = FONT_(14);
            self.labelCollection.font = FONT_(14);
            self.labelHistorical.font = FONT_(14);
            self.labelCache.font = FONT_(14);
            self.butSignIn.frame = CGRectMake(0,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);

            self.imageViewSignIn.frame = CGRectMake((ScreenWidth/4-20)/2,12,20, 20.5);
            self.labelSignIn.frame = CGRectMake(0, CGRectGetMaxY(self.imageViewSignIn.frame)+5, ScreenWidth/4,18);

            self.butCollection.frame = CGRectMake(ScreenWidth/4,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewCollection.frame = CGRectMake((ScreenWidth/4-20)/2, 12.5, 20, 20);
            self.labelCollection.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewCollection.frame)+5, ScreenWidth/4, 18);

            self.butHistorical.frame = CGRectMake(ScreenWidth/2,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewHistorical.frame = CGRectMake((ScreenWidth/4-18.5)/2, 13.5, 18.5, 18.5);
            self.labelHistorical.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewHistorical.frame)+5, ScreenWidth/4, 18);

            self.butCache.frame = CGRectMake(ScreenWidth/4*3,CGRectGetMaxY(viewTop.frame), ScreenWidth/4,height);
            self.imageViewCache.frame = CGRectMake((ScreenWidth/4-20)/2,14, 20, 18.5);
            self.labelCache.frame = CGRectMake(0,  CGRectGetMaxY(self.imageViewCache.frame)+5, ScreenWidth/4, 18);
        }

        KYWaterWaveView *waterViewXib = [[KYWaterWaveView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, 50)];
        self.waterViewXib = waterViewXib;
        [self addSubview:waterViewXib];

        self.waterViewXib.waveSpeed = 2.0f;
        self.waterViewXib.waveAmplitude = 2.0f;
        [self.waterViewXib wave];

        [self.waterViewXib mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.equalTo(self);
            make.bottom.equalTo(self.imageViewHistorical.mas_top).offset(-0);
            make.height.mas_equalTo(40);
        }];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
}
@end
